package cn.lingyangwl.agile.food.model.entity;

import cn.lingyangwl.agile.model.BasePO;
import cn.lingyangwl.agile.tenant.core.DataIsolation;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 商品属性值
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "food_goods_attribute_value")
@DataIsolation(filterTenant = true, tableName = "food_goods_attribute_value")
public class GoodsAttributeValue extends BasePO {
    @TableId
	private Long id;

	/**
	 * 商品id
	 */
	private Long goodsId;
	
	/**
	 * 属性id
	 */
	private Long goodsAttributeId;
	
	/**
	 * 属性值
	 */
	private String value;

    public static LambdaQueryWrapper<GoodsAttributeValue> lqw() {
		return Wrappers.lambdaQuery();
	}
}
